import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import path from 'path'


// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  }, 
  server: {
    port: 3000,
  },
  css: {
    preprocessorOptions: {
      scss: {
        // 这里可以添加全局SCSS变量或导入
        // additionalData: `@import "@/styles/variables.scss";`
      }
    }
  }
})
